﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassExampleSecondTask
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Student> students = new List<Student>();
            string ch = "N";
            do
            {
                Console.Clear();
                Student student = new Student();
                student.AddStudentInfo();
                students.Add(student);
                Console.WriteLine("Ввести следующего студента? Y/N");
                ch = Console.ReadLine().ToUpper();
            } while (ch == "Y");
            Console.Clear();
            foreach (var student in students)
            {
                if (student.AverageMark() > 67)
                {
                    student.PrintStudentInfo();
                }
            }
        }
    }


}
